﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace GestionEco
{
   public abstract class EtreVivant
    {
       public  Coordonnee position;
       protected  Color couleur;
       protected Vector2 deplacement;
       protected Color[] data;
       protected Texture2D etreVivantTexture;

       public EtreVivant(Color uneCouleur)
       {
         
           this.couleur = uneCouleur;
           this.position = new Coordonnee();
           this.deplacement = new Vector2();
           this.deplacement = Vector2.One;
           this.data= new Color[5 * 5];
           for (int i = 0; i < data.Length; ++i) data[i] = uneCouleur;

       }

       public virtual void afficher()
       {
           Console.WriteLine(this.etreVivantTexture.Width);
           
       }

       public Color getCouleur()
       {

           return this.couleur;

       }
       public Texture2D getEtreVivantTexture()
       {

           return this.etreVivantTexture;

       }
       public Color[] getdata()
       {

           return this.data;

       }

       public void setEtreVivantTexture(Texture2D uneTexture )
       {

           this.etreVivantTexture = uneTexture;

       }

       public Vector2 getDeplacement()
       {
           return this.deplacement;
       }

       public void setDeplacement(Vector2 unVec)
       {
           this.deplacement = unVec;
       }

       public virtual void seDeplacer()
       {

       }

    }
}
